import { ObservationWriter } from "../ObservationWriter";
import { ReflectionSensorBase, ReflectionSensorInfo } from "./ReflectionSensorBase";

export class QuaternionReflectionSensor extends ReflectionSensorBase {

    constructor(reflectionSensorInfo: ReflectionSensorInfo) {
        super(reflectionSensorInfo, 4);
    }


    override writeReflectedField(writer: ObservationWriter): void {
        const quaternion = this.getReflectionValue();
       writer.addQuaternion(quaternion);
    }

}